package com.huarui.user.model;

import java.util.Date;
import java.util.Set;

import org.ewaf.framework.model.IDataObject;

import com.huarui.company.model.Company;

public class User implements IDataObject {

	private static final long serialVersionUID = -4867775708031812584L;

	/**
	 * 用户状态的枚举值[未激活]
	 */
	public static final String STATUS_UNACTIVED = "0";
	/**
	 * 用户状态的枚举值[激活]
	 */
	public static final String STATUS_ACTIVED = "1";

	/**
	 * 用户ID
	 */
	private Integer id;

	/**
	 * 操作员名字
	 */
	private String name;

	/**
	 * 拼音码
	 */
	private String pyCode;

	/**
	 * 用户密码
	 */
	private String password;

	/**
	 * 用户性别
	 */
	private int sex = 1;

	/**
	 * 出生日期
	 */
	private Date birthday;

	/**
	 * 身份证
	 */
	private String ident;

	/**
	 * 状态
	 */
	private String status = STATUS_UNACTIVED;

	/**
	 * 备注
	 */
	private String memo;

	/**
	 * 登录次数
	 */
	private int loginTimes;

	/**
	 * 激活码
	 */
	private String activateCode;

	/**
	 * 所在公司
	 */
	private Integer CompanyId;

	/**
	 * 操作员编号
	 */
	private int code;

	/**
	 * 用户邮箱
	 */
	private String email;

	/**
	 * 用户创建时间
	 */
	private Date gmtCreated;

	/**
	 * 用户修改时间
	 */
	private Date gmtModfiy;

	/**
	 * 用户最好登入时间
	 */
	private Date gmtLastLogin;
   /**
    * 密码修改激活码
    */
	private String activeCode;
	
	/**
	 * 密码修改过期时间
	 */
	private Date expiredTime;
	/**
	 * 是否删除用户
	 */
	private boolean delete;
	/**
	 * 有业务往来的在线公司
	 */
	private Set<Company> companys;

	public Set<Company> getCompanys() {
		return companys;
	}

	public void setCompanys(Set<Company> companys) {
		this.companys = companys;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPyCode() {
		return pyCode;
	}

	public void setPyCode(String pyCode) {
		this.pyCode = pyCode;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public int getSex() {
		return sex;
	}

	public void setSex(int sex) {
		this.sex = sex;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getIdent() {
		return ident;
	}

	public void setIdent(String ident) {
		this.ident = ident;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public int getLoginTimes() {
		return loginTimes;
	}
	

	public void setLoginTimes(int loginTimes) {
		this.loginTimes = loginTimes;
	}


	public Date getGmtLastLogin() {
		return gmtLastLogin;
	}

	public void setGmtLastLogin(Date gmtLastLogin) {
		this.gmtLastLogin = gmtLastLogin;
	}

	public String getActivateCode() {
		return activateCode;
	}

	public void setActivateCode(String activateCode) {
		this.activateCode = activateCode;
	}
	public Integer getCompanyId() {
		return CompanyId;
	}

	public void setCompanyId(Integer companyId) {
		CompanyId = companyId;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Date getGmtCreated() {
		return gmtCreated;
	}

	public void setGmtCreated(Date gmtCreated) {
		this.gmtCreated = gmtCreated;
	}

	public Date getGmtModfiy() {
		return gmtModfiy;
	}

	public void setGmtModfiy(Date gmtModfiy) {
		this.gmtModfiy = gmtModfiy;
	}

	public boolean isDelete() {
		return delete;
	}

	public void setDelete(boolean delete) {
		this.delete = delete;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getActiveCode() {
		return activeCode;
	}

	public void setActiveCode(String activeCode) {
		this.activeCode = activeCode;
	}

	public Date getExpiredTime() {
		return expiredTime;
	}

	public void setExpiredTime(Date expiredTime) {
		this.expiredTime = expiredTime;
	}
}
